package com.jml.async;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainAsync {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AsyncConfigBean.class);
        UserService userService = context.getBean(UserService.class);
        System.out.println("同步执行："+Thread.currentThread().getName());
        Integer save = userService.save(null);
        System.out.println(save);
    }


}
